package jsyf.oa.entity.system;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

@Entity
@Table(name = "T_SYS_COPIER", schema = "oa", catalog = "")
public class CopierEntity extends BaseEntity implements Serializable {

    private String mainId;
    private String copierId;
    private String copierName;
    private String moduleName;
    private String userId;
    private String receivableIds;//应收申请的ids;

    public String getReceivableIds() {
        return receivableIds;
    }

    public void setReceivableIds(String receivableIds) {
        this.receivableIds = receivableIds;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getMainId() {
        return mainId;
    }

    public void setMainId(String mainId) {
        this.mainId = mainId;
    }

    public String getCopierId() {
        return copierId;
    }

    public void setCopierId(String copierId) {
        this.copierId = copierId;
    }

    public String getCopierName() {
        return copierName;
    }

    public void setCopierName(String copierName) {
        this.copierName = copierName;
    }

    public String getModuleName() {
        return moduleName;
    }

    public void setModuleName(String moduleName) {
        this.moduleName = moduleName;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject json = new JSONObject();
        json.put("ID", this.getId());
        json.put("MAIN_ID", this.getMainId());
        json.put("COPIER_ID", this.getCopierId());
        json.put("COPIER_NAME", this.getCopierName());
        json.put("MODULE_NAME", this.getModuleName());
        json.put("RECEIVABLE_IDS", this.getReceivableIds());
        return json;
    }

    @Override
    public String getTableName() {
        return "T_SYS_COPIER";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject json = new JSONObject();
        json.put("ID", "id");
        json.put("MAIN_ID", "mainId");
        json.put("COPIER_ID", "copierId");
        json.put("COPIER_NAME", "copierName");
        json.put("MODULE_NAME", "moduleName");
        json.put("RECEIVABLE_IDS","receivableIds");
        return json;
    }
}
